home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / disk / dqcl11.zip / TEST.BAT < prev    next >
DOS Batch File  |  1996-03-14  |  548b  |  32 lines

  1. @echo off
  2. rem Example batch file to illustrate QC.EXE errorlevel returns
  3. cls
  4. qc
  5. if errorlevel 5 goto system_err
  6. if errorlevel 4 goto not_ready
  7. if errorlevel 3 goto track_not_supp
  8. if errorlevel 2 goto track_err
  9. if errorlevel 1 goto file_err
  10.  
  11. rem The disk passed if we reach here
  12.  
  13. goto end
  14. :system_err
  15. echo Ststem error
  16. goto end
  17. :not_ready
  18. echo The drive's not ready
  19. goto end
  20. :track_not_supp
  21. echo Track not supported
  22. goto end
  23. :track_err
  24. echo Track error, invalid format?
  25. goto end
  26. :file_err
  27. echo File read error
  28. :end
  29.  
  30.  
  31.  
  32.